<?php
	$conn=mysqli_connect("127.0.0.1","root","","jfr");
	mysqli_query($conn,"SET NAMES utf8");
	$sql="SELECT * FROM xzys ORDER BY id DESC LIMIT 4;";
	$rs=mysqli_query($conn,$sql);
	$arr=[];
	while(($row=mysqli_fetch_assoc($rs))!=null){
		array_push($arr,$row);
	}
	echo JSON_encode($arr);
?>